import modules from './src'
import api from './api'

const utils = {
  ...modules,
  api
}

const install = function (Vue) {
  console.log(utils)
  Object.keys(utils).forEach(key => {
    const util = utils[key]
    const name = '$' + util.name
    Vue[util.name] = Vue.prototype[name] = util.default
  })
}

export default {
  install,
  ...modules,
  api
}
